/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anism.holidays.sessionbeans;

import javax.ejb.EJB;
import javax.ejb.Stateless;
import org.anism.holidays.business.Planning;
import org.anism.holidays.entities.Employee;
import org.anism.holidays.facades.EmployeeFacadeLocal;

/**
 *
 * @author user
 */
@Stateless
public class HolidayPlanning implements HolidayPlanningLocal {
    
    @EJB
    private Authentication auth;

    @EJB
    private EmployeeFacadeLocal em;    

    @Override
    public Employee authenticate(final String employeeId, final String password) {
        return auth.authenticate(employeeId, password);
    }

    @Override
    public Planning getPlanning(Employee employee) {
        return new Planning(employee);
    }
}
